package cn.itcast.pattern.decorator.impl;

import cn.itcast.pattern.decorator.FastFood;

/**
 * 炒饭，具体构建角色-炒饭
 */
public class FriceRice extends FastFood {
    public FriceRice() {
        super(10, "炒饭");
    }

    @Override
    public float cost() {
        return getPrice();
    }
}
